package org.jeecg.modules.demo.baseorderservicewriteoff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.baseorderservicewriteoff.entity.BaseOrderServiceWriteoff;

import java.util.HashMap;
import java.util.List;

/**
 * @Description: 订单待核销服务表
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
public interface BaseOrderServiceWriteoffMapper extends BaseMapper<BaseOrderServiceWriteoff> {
    /**
     * 根据订单id查询
     *
     * @param orderId
     * @return
     */
    IPage<BaseOrderServiceWriteoff> getByOderId(Page page, @Param("orderId") String orderId);

    List<HashMap> getServiceCount( BaseOrderServiceWriteoff baseOrderServiceWriteoff);


}
